<extend name="Public/common"/>
<block name="othercss">
 <script type="text/javascript">
            var url_get_address = "{:U('get_address')}";
            var url_del_address = "{:U('Member/address_del')}";
            var url_add_address = "{:U('Member/address_add',array('type'=>'ajax'))}";
            var url_edit_address = "{:U('Member/address_edit',array('type'=>'ajax'))}";
        </script>
               <link rel="stylesheet" type="text/css" href="__PUBLIC__/common/artDialog6/css/ui-dialog.css" />
        <script type="text/javascript" src="__PUBLIC__/common/artDialog6/dist/dialog-plus-min.js"></script>
        <script src="{$theme_path}/js/member_address.js"></script>
</block>
<block name="body">
<div class="mian" style="background-color: #f4f4f4">
    <div class="help">
        <div class="box">
            <div class="loc"><i class="icon iconloc"></i>您现在在这里：<a href="{:urlrotue('/')}">百宝库</a> > <a href="{:urlrotue('Member/index')}">个人中心</a> > <span class="on">收货地址</span>
            </div>
            <div class="clearfix help_list">
                <div class="right">
                    <h2 class="title">收货地址</h2>
                    <a class="btn red" id="tanchu" onclick="add_address()">新增收货地址</a>
                    <table class="table-shdz" cellpadding="0" cellspacing="0">
                        <tr>
                            <th>收货人</th>
                            <th>所在地区</th>
                            <th>详细地址</th>
                            <th>邮编</th>
                            <th>手机号</th>
                            <th>操作</th>
                        </tr>
                        <foreach name="list" item="item">
                        <tr <eq name="item['is_default']" value="1">class="on"</eq>>
                            <td class="s1">{$item.realname}</td>
                            <td  class="s2">{$item.province} {$item.city} {$item.area} </td>
                            <td  class="s3">{$item.address}</td>
                            <td  class="s4">{$item.zip}</td>
                            <td  class="s5">{$item.phone}</td>
                            <td  class="s6"><a onclick="edit_address({$item.id})" style="cursor:pointer;">修改</a>|<a  style="cursor:pointer;" onclick="del_address({$item.id},this)">删除</a> <eq name="item['is_default']" value="1">|<a class="remove">默认地址</a></eq></td>
                        </tr>
                        </foreach>

             
                    </table>
                      <div class="pagetion">
                          {$page}
             </div>
                </div>
                  <include file="Member:left_menu"/>
            </div>
        </div>
    </div>
</div>
<!--end mian-->
<div class="bg_heise">
    <div class="lanmu">
        <div class="close"><img src="{$theme_path}/images/close1.jpg" width="22" height="22"/> </div>
        <table>
            <tr>
                <td>收货人：</td>
                <td><input type="text" class="input2"/></td>
            </tr>
            <tr>
                <td>收货地区：</td>
                <td>
                    <select class="ss1">
                        <option value="volvo">中国</option>
                        <option value="saab">Saab</option>
                        <option value="opel">Opel</option>
                        <option value="audi">Audi</option>
                    </select>
                    <select>
                        <option value="volvo">省</option>
                        <option value="saab">Saab</option>
                        <option value="opel">Opel</option>
                        <option value="audi">Audi</option>
                    </select>
                    <select>
                        <option value="volvo">市</option>
                        <option value="saab">Saab</option>
                        <option value="opel">Opel</option>
                        <option value="audi">Audi</option>
                    </select>
                    <select>
                        <option value="volvo">区</option>
                        <option value="saab">Saab</option>
                        <option value="opel">Opel</option>
                        <option value="audi">Audi</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>详细地址：</td>
                <td><input type="text" class="input2 input3"/></td>
            </tr>
            <tr>
                <td>手机：</td>
                <td>
                    <div class="china input2">中国+86</div>
                    <input type="text" class="input2 input4"/></td>
            </tr>
            <tr>
                <td> 邮编：</td>
                <td><input type="text" class="input2 input5"/></td>
            </tr>
            <tr>
                <td></td>
                <td><i class="on input2">√</i>设置为默认地址</td>
            </tr>
            <tr>
                <td></td>
                <td><a class="bc">确认地址</a></td>
            </tr>
        </table>
      
    </div>
         
</div>
</block>
<block name="otherjs">

</block>



